package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.DisplayVideoMapper;
import com.ruoyi.business.domain.DisplayVideo;
import com.ruoyi.business.service.IDisplayVideoService;

/**
 * 是否展示视频Service业务层处理
 * 
 * @author lcz
 * @date 2025-02-27
 */
@Service
public class DisplayVideoServiceImpl implements IDisplayVideoService 
{
    @Autowired
    private DisplayVideoMapper displayVideoMapper;

    /**
     * 查询是否展示视频
     * 
     * @param id 是否展示视频主键
     * @return 是否展示视频
     */
    @Override
    public DisplayVideo selectDisplayVideoById(Long id)
    {
        return displayVideoMapper.selectDisplayVideoById(id);
    }

    /**
     * 查询是否展示视频列表
     * 
     * @param displayVideo 是否展示视频
     * @return 是否展示视频
     */
    @Override
    public List<DisplayVideo> selectDisplayVideoList(DisplayVideo displayVideo)
    {
        return displayVideoMapper.selectDisplayVideoList(displayVideo);
    }

    /**
     * 新增是否展示视频
     * 
     * @param displayVideo 是否展示视频
     * @return 结果
     */
    @Override
    public int insertDisplayVideo(DisplayVideo displayVideo)
    {
        return displayVideoMapper.insertDisplayVideo(displayVideo);
    }

    /**
     * 修改是否展示视频
     * 
     * @param displayVideo 是否展示视频
     * @return 结果
     */
    @Override
    public int updateDisplayVideo(DisplayVideo displayVideo)
    {
        return displayVideoMapper.updateDisplayVideo(displayVideo);
    }

    /**
     * 批量删除是否展示视频
     * 
     * @param ids 需要删除的是否展示视频主键
     * @return 结果
     */
    @Override
    public int deleteDisplayVideoByIds(Long[] ids)
    {
        return displayVideoMapper.deleteDisplayVideoByIds(ids);
    }

    /**
     * 删除是否展示视频信息
     * 
     * @param id 是否展示视频主键
     * @return 结果
     */
    @Override
    public int deleteDisplayVideoById(Long id)
    {
        return displayVideoMapper.deleteDisplayVideoById(id);
    }
}
